import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: { title: '会议管理' }
  },
  {
    path: '/meetingManage',
    name: 'meetingManage',
    component: () => import('../views/meetingManage/index.vue')
  },
  {
    path: '/meetingOverview',
    name: 'meetingOverview',
    component: () => import('../views/meetingOverview/index.vue')
  },
  {
    path: '/meetingSubscribe',
    name: 'meetingSubscribe',
    component: () => import('../views/meetingSubscribe/index.vue')
  },
  {
    path: '/meetingSubscribe/meetingApply',
    name: 'meetingApply',
    component: () => import('../views//meetingSubscribe/meetingApply.vue')
  },
  {
    path: '/subscribeList',
    name: 'subscribeList',
    component: () => import('../views/subscribeList/index.vue')
  },
  {
    path: '/subscribeList/detail',
    name: 'subscribeListDetail',
    component: () => import('../views/subscribeList/detail.vue')
  },
  // {
  //   path: '/',
  //   name: 'meetingSet',
  //   meta: { title: '会议设置' },
  //   component: () => import('../views/meetingManage/meetingSet/index.vue')
  // },
  {
    path: '/meetingSet',
    name: 'meetingSet',
    meta: { title: '会议室设置' },
    component: () => import('../views/meetingManage/meetingSet/index.vue')
  },
  {
    path: '/meetingSet/Edit',
    name: 'meetingSetEdit',
    meta: { title: '会议室编辑' },
    component: () => import('../views/meetingManage/meetingSet/Edit/index.vue')
  },
  // {
  //   path: '/authSet',
  //   name: 'authSet',
  //   meta: { title: '权限设置' },
  //   component: () => import('../views/authSet/index.vue')
  // },
  {
    path: '/labelSet',
    name: 'labelSet',
    meta: { title: '标签设置' },
    component: () => import('../views/meetingManage/labelSet/index.vue')
  },
  {
    path: '/labelSet/detail',
    name: 'labelSetDetail',
    meta: { title: '标签设置详情' },
    component: () => import('../views/meetingManage/labelSet/edite.vue')
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
